package com.mm.cloud.sys.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.mm.cloud.common.core.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;

/**
 * <p>
 * 资源基础信息
 * </p>
 *
 * @author mm
 * @since 2024-05-24
 */
@Getter
@Setter
@TableName("mm_permission")
@Schema(name = "Permission", description = "资源基础信息")
public class Permission extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "路由名称")
    private String name;

    @Schema(description = "资源标题")
    private String title;

    @Schema(description = "资源类型 1-菜单 2-按钮")
    private Byte type;

    @Schema(description = "资源图标")
    private String icon;

    @Schema(description = "权限标识")
    private String permissionCode;

    @Schema(description = "顺序")
    private Integer sort;

    @Schema(description = "请求路径")
    private String path;

    @Schema(description = "组件")
    private String component;

    @Schema(description = "父级ID")
    private Long pid;
}
